id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Lambda IntroNoArgLambda1

prev  |  next  |  chance

fun constVal(): Int {
  return 5
}

fun funcNoArg1(i: Int): Int = i * constVal()

Function Call  Return Value
funcNoArg1(5)
funcNoArg1(10)
funcNoArg1(20)

Experiment with this code on Gitpod.io or as a Kotlin Playground

⬅ Back